import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './routes'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
import store from '@/store/index.ts'
// 引入 echarts
import * as echarts from 'echarts'
// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
// main.ts

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}


// 全局挂载 echarts
app.config.globalProperties.$echarts = echarts
app.use(router).use(ElementPlus).use(store).use(Avue).mount('#app')
